import PaymentDetailComp from "containers/pay/pay-workbench/payment-detail";
import PayWorkbenchComp from "containers/pay/pay-workbench/pay-workbench";
import PayBacklash from "containers/pay/payment-backlash/pay-backlash";
import MyBacklash from "containers/pay/payment-backlash/pay-my-backlash";
import ToBacklash from "containers/pay/payment-backlash/to-backlash";
import BacklashRecheck from "containers/pay/payment-backlash-recheck/pay-backlash-recheck";
import Rechecking from "containers/pay/payment-backlash-recheck/pay-backlash-rechecking";
import BacklashRechecked from "containers/pay/payment-backlash-recheck/pay-backlash-rechecked";

//支付
const pay = {
  key:'pay',
  icon: 'pay-circle',
  pageRole: "PAY",
  subMenu: [
    //付款工作台
    {
      key: 'pay-workbench',
      url:'/main/pay/pay-workbench',
      components: PayWorkbenchComp,
      parent: 'pay',
      pageRole: "PAYMENTCENTER",
      children: {
        //支付流水详情
        paymentDetail: {
          key:'payment-detail',
          url:'/main/pay/pay-workbench/payment-detail/:tab/:subTab/:id',
          components: PaymentDetailComp,
          parent: 'pay-workbench'
        }
      }
    },
    //我的反冲
    {
      key:'main-pay-backlash',
      url:'/main/pay/main-pay-backlash',
      components: PayBacklash ,
      parent: 'pay',
      children:{
        myBacklash:{
          key:'my-backlash',
          url:'/main/pay/payment-backlash/pay-my-backlash',
          components: MyBacklash,
          parent: 'main-pay-backlash',
        },
        toBacklash:{
          key:"to-backlash",
          url:'/main/pay/payment-backlash/to-backlash/:id',
          components: ToBacklash,
          parent: 'main-pay-backlash'
        }
      }
    },
    //反冲复核页面
    {
      key:'pay-backlash-recheck',
      url:'/main/pay/pay-backlash-recheck',
      components: BacklashRecheck ,
      parent: 'pay',
      children:{
        rechecking:{
          key:"backlash-rechecking",
          url:"/main/pay/payment-backlash-recheck/pay-backlash-rechecking",
          components:Rechecking,
          parent:"pay-backlash-recheck"
        },
        rechecked:{
          key:"backlash-rechecked",
          url:"/main/pay/payment-backlash-recheck/pay-backlash-rechecked",
          components:BacklashRechecked,
          parent:"pay-backlash-recheck"
        }

      },
    }
  ],
  fpItem: ["all.payment.platform"],
  fpValue: [[true]]
};

export default pay
